package com.tfswx.jcyw.sqlmodel.api.bean.table;

import lombok.Data;

/**
 * @author 张述江
 * @date 2023/9/15
 */
@Data
public class SelectFromItem implements FromItem {
    private Select select;
    private Alias alias;

    public SelectFromItem(Select select, Alias alias) {
        this.select = select;
        this.alias = alias;
    }

    public SelectFromItem(Select select) {
        this(select, null);
    }

    public SelectFromItem() {
        this(null, null);
    }

    @Override
    public String toString() {
        return select.toString();
    }

}
